
#ifndef SHADOWDB_H
#define SHADOWDB_H

#include "Core.h"

#include <map>
#include <vector>
#include <iostream>
#include <utility>
using namespace std;

class ShadowDB
{
	public:
		map< Sketch, vector<Record> > db;
		void add(const Sketch &s,const Record &r);
		void save(const char*);
		void load(const char*);
		const vector<Record> & query(int height,int width,unsigned char *data);
		vector<Record> query_buf;
};

#endif
